package com.jy.modules.cims.data.interact.tbj.loan.request;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

/**
 * @description 铜板街产品相关的信息Request。
 * @author shengzhoutao
 * @date 2015-09-07
 */
public class RequestProdLoanDTO {

	@NotBlank(message = "产品ID productId不能为空")
	@Size(min = 1, max = 50, message = "产品ID productId长度必须在1-50之间")
	private String productId;// VARCHAR(50) k1504212302 产品ID

	@NotBlank(message = "产品名称 productId不能为空")
	@Size(min = 1, max = 20, message = "产品名称 productName长度必须在1-20之间")
	private String productName;// VARCHAR(20) 产品名称

	@NotNull(message = "起息时间 startBenefitDate不能为空")
	private java.util.Date startBenefitDate;// DATE 起息时间，格式yyyy-MM-dd

	@NotNull(message = "到期时间 endBenefitDate不能为空")
	private java.util.Date endBenefitDate;// DATE 到期时间，格式yyyy-MM-dd

	@NotNull(message = "期限period不能为空")
	@Min(value = 0, message = "期限period最小值必须是0")
	private Integer period;// INT(8) 期限

	@NotNull(message = "期限单位 periodUnit不能为空")
	@Size(min = 1, max = 4, message = "期限单位 periodUnit长度必须在1-4之间")
	private String periodUnit;// VARCHAR(4) 期限单位，Y年M月D日

	@Size(min = 0, max = 200, message = "附件地址 filePath长度必须在0-200之间")
	private String filePath;// VARCHAR(200) /fdjs/32842/fsd.csv 附件地址

	/** 借款信息审批编号 */
	@NotNull(message = "借款信息审批编号loan不能为空")
	private String[] loan;

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public java.util.Date getStartBenefitDate() {
		return startBenefitDate;
	}

	public void setStartBenefitDate(java.util.Date startBenefitDate) {
		this.startBenefitDate = startBenefitDate;
	}

	public java.util.Date getEndBenefitDate() {
		return endBenefitDate;
	}

	public void setEndBenefitDate(java.util.Date endBenefitDate) {
		this.endBenefitDate = endBenefitDate;
	}

	public Integer getPeriod() {
		return period;
	}

	public void setPeriod(Integer period) {
		this.period = period;
	}

	public String getPeriodUnit() {
		return periodUnit;
	}

	public void setPeriodUnit(String periodUnit) {
		this.periodUnit = periodUnit;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String[] getLoan() {
		return loan;
	}

	public void setLoan(String[] loan) {
		this.loan = loan;
	}
	
}
